package org.springblade.task.base.entity;

import lombok.Data;
import org.springblade.build.table.common.annotation.Entity;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * 有声书分章订单表
 *
 * @author 系统自动生成
 * @version 1.0 2020-08-19
 */
@Entity
@Data
@Table(name="t_base_audio_chapter_order")
public class BaseAudioChapterOrder {
	/**
	 * 主键
	 */
	@Column(columnDefinition = " bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键' ")
	private Long id;
	/**
	 * 账号
	 */
	@Column(length = 50, columnDefinition = " varchar(50)  comment '账号' ")
	private String pin;
	/**
	 * 书籍ID
	 */
	@Column(columnDefinition = " bigint(20) COMMENT '书籍ID' ")
	private Long ebookId;
	/**
	 * 订单ID
	 */
	@Column(columnDefinition = " bigint(20) COMMENT '订单ID' ")
    private Long orderId;
    /**
     * 支付方式，0-现金支付，3-ios虚拟币支付，4-apple匿名支付，10-安卓虚拟币支付
     */
	@Column(columnDefinition = " int(11) COMMENT '支付方式，0-现金支付，3-ios虚拟币支付，4-apple匿名支付，10-安卓虚拟币支付' ")
    private Integer orderMode;
	/**
	 * 操作平台,ios，android,web,eink
	 */
	@Column(columnDefinition = " varchar(50) COMMENT '操作平台,ios，android,web,eink' ")
	private String os;
	/**
	 * 客户端类型，ipad,iphone,android,pc
	 */
	@Column(columnDefinition = "  varchar(20) COMMENT '客户端类型，ipad,iphone,android,pc' ")
    private String client;
    /**
     * 商品金额
     */
	@Column(columnDefinition = "  bigint(20) COMMENT '商品金额' ")
    private Long totalAmount;
    /**
     * 实际支付
     */
	@Column(columnDefinition = "  bigint(20) COMMENT '实际支付' ")
    private Long onlineAmount;
    /**
     * 折扣金额
     */
	@Column(columnDefinition = "  bigint(20) COMMENT '折扣金额'")
    private Long discountAmount;
    /**
     * 创建时间
     */
	@Column(columnDefinition = "  datetime COMMENT '创建时间' ")
    private Date created;
    /**
     * 修改时间
     */
	@Column(columnDefinition = " datetime COMMENT '修改时间' ")
    private Date modified;

}
